package com.example.service;

import com.example.pojo.Discuss;
import com.example.pojo.Posts;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-06-12
 */
public interface IPostsService extends IService<Posts> {
    List<Posts> getAll();
    void addPost(Integer uid,Integer bid,String title,String content,String images);
    List<Discuss> getDiscuss(Integer pid);

    void addDiscuss(Integer uid,String text,Integer pid);

    List<Posts> getDiscuss_Bar(Integer bid,Integer uid);
    List<Posts> getDiscuss_User(Integer uid);

    Posts getDiscuss_Pid(Integer pid);
}
